home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / dev / c / GAPLib.lha / GAPLib_Beta / wizards / b2c.c next >
C/C++ Source or Header  |  1999-04-22  |  274b  |  15 lines

  1. #include <stdio.h>
  2.  
  3. int main(cnt,arg)
  4. int cnt;
  5. char *arg[];
  6. {
  7. int z,length=0;
  8.  
  9. printf("unsigned char %s[]={",(cnt>1)?arg[1]:"xyzzy");
  10. while(z=getc(stdin),z!=EOF){printf("%d,\n",z);length++;}
  11. printf("0};\n#define\t%s_SIZE\t%d\n",(cnt>1)?arg[1]:"xyzzy",length);
  12.  
  13. return(0);
  14. }
  15.